package cn.harry.modular.news.domain;

import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.harry.common.base.BaseEntity;
/**
 * answer实体对象
 *
 * @author harry
 * @公众号 Harry技术
 */
@Getter
@Setter
@TableName("t_answer")
public class Answer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 问题ID
     */
    private Integer questionId;
    /**
     * 内容
     */
    private String content;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 回答时间
     */
    private LocalDateTime time;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 头像
     */
    private String avatar;
    private Integer likes;
    private Integer likesCount;
    /**
     * 问题
     */
    private String questionTitle;
    /**
     * 有效状态，0:无效 1:有效
     */
    private Integer valid;
}
